﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class ValidatePalletInputMessage : BaseTibcoMessage<ValidatePalletInputMessageBody>
    {
        public ValidatePalletInputMessage()
        {

        }
        public ValidatePalletInputMessage(ValidatePalletInputMessageBody body, string inboxName = "", string listener = "") : base("ValidatePalletInputRequest", body, inboxName, listener)
        {
        }
    }


    public class ValidatePalletInputMessageBody : PalletEventBase
    {
        public ValidatePalletInputMessageBody()
        {
        }

        public ValidatePalletInputMessageBody(string machineName, string portName, string palletName)
        {
            MachineName = machineName;
            PortName = portName;
            PalletName = palletName;
            EventUser = machineName;
        }

        [XmlElement("BOXQUANTITY")]
        public string BoxQuantity { get; set; }
        [XmlElement("BOXLIST")]
        public BoxList BoxList { get; set; }

    }
}
